package com.panda.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.panda.common.annotation.Excel;
import com.panda.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 运营任务对象 t_panda_task
 *
 * @author panda
 * @date 2021-03-07
 */
public class TPandaTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务ID */
    private Long taskId;

    /** 任务名称 */
    private String taskName;

    /** 店铺ID */
    private Long storeId;

    /** 店铺名称 */
    @Excel(name = "店铺名称")
    private String storeName;

    /** 产品ID */
    private String productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String productType;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keywords;

    /** 链接 */
    @Excel(name = "链接")
    private String url;

    /** 主图 */
    @Excel(name = "主图")
    private String picture;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal price;

    /** 分配时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分配时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tastDate;

    /** 总量 */
    @Excel(name = "总量")
    private Integer totalVolume;

    /** 评价比例 */
    @Excel(name = "评价比例")
    private String evaluation;

    /** 原负责组 */
    @Excel(name = "原负责组")
    private String originalSet;

    /** 调整任务Id */
    @Excel(name = "调整任务Id")
    private Long adjustTaskId;

    /** 负责组 */
    @Excel(name = "负责组")
    private String responsibleSet;

    private List<PandaTask> deptTasks;

    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }
    public void setStoreId(Long storeId)
    {
        this.storeId = storeId;
    }

    public Long getStoreId()
    {
        return storeId;
    }
    public void setStoreName(String storeName)
    {
        this.storeName = storeName;
    }

    public String getStoreName()
    {
        return storeName;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setKeywords(String keywords)
    {
        this.keywords = keywords;
    }

    public String getKeywords()
    {
        return keywords;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setTastDate(Date tastDate)
    {
        this.tastDate = tastDate;
    }

    public Date getTastDate()
    {
        return tastDate;
    }
    public void setTotalVolume(Integer totalVolume)
    {
        this.totalVolume = totalVolume;
    }

    public Integer getTotalVolume()
    {
        return totalVolume;
    }
    public void setEvaluation(String evaluation)
    {
        this.evaluation = evaluation;
    }

    public String getEvaluation()
    {
        return evaluation;
    }
    public void setOriginalSet(String originalSet)
    {
        this.originalSet = originalSet;
    }

    public String getOriginalSet()
    {
        return originalSet;
    }
    public void setResponsibleSet(String responsibleSet)
    {
        this.responsibleSet = responsibleSet;
    }

    public String getResponsibleSet()
    {
        return responsibleSet;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("taskId", getTaskId())
                .append("taskName", getTaskName())
                .append("storeId", getStoreId())
                .append("storeName", getStoreName())
                .append("productId", getProductId())
                .append("productName", getProductName())
                .append("keywords", getKeywords())
                .append("url", getUrl())
                .append("picture", getPicture())
                .append("price", getPrice())
                .append("tastDate", getTastDate())
                .append("totalVolume", getTotalVolume())
                .append("evaluation", getEvaluation())
                .append("originalSet", getOriginalSet())
                .append("responsibleSet", getResponsibleSet())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }

    public List<PandaTask> getDeptTasks() {
        return deptTasks;
    }

    public void setDeptTasks(List<PandaTask> deptTasks) {
        this.deptTasks = deptTasks;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public Long getAdjustTaskId() {
        return adjustTaskId;
    }

    public void setAdjustTaskId(Long adjustTaskId) {
        this.adjustTaskId = adjustTaskId;
    }
}